<%@ page pageEncoding="utf-8" %>
<%@ taglib prefix="t" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.warm.doctor.utils.WarmmedConfig" %>
<%
    request.setAttribute("path", request.getContextPath());
%>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>医生列表</title>
    <meta name="keywords" content="医生列表">
    <meta name="description" content="医生列表">
    <meta name="format-detection" content="telephone=no">
    <meta content="email=no" name="format-detection">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="msapplication-tap-highlight" content="no">
    <link rel="stylesheet" href="<%= WarmmedConfig.static_server_url %>/warm/css/min/doctor.build.css"/>
</head>

<body>
<div class="doctor_list">
    <ul>
        <c:if test="${empty result}">
            <li style="text-align: center;background: #fff;">
                <img src="<%= WarmmedConfig.static_server_url %>/warm/img/icon_null_img.png" alt=""/>
                <h1>您还没有添加任何医生</h1>
            </li>

        </c:if>
        <c:if test="${not empty result}">
            <c:forEach var="item" items="${result}" >
                <li>
                    <a href="${path}/im/consult?doctorId=${item.id}&wxId=${oid}">
                        <div class="doctor_list_pic">
                            <c:if test="${item.avatar ==null}">
                                <img src="<%= WarmmedConfig.static_server_url %>/warm/img/doctor_pic.png">
                            </c:if>
                            <c:if test="${item.avatar !=null}">
                                <img src="${item.avatar}">
                            </c:if>

                        </div>
                        <div class="doctor_list_name"><h6 class="col_b ft16">${item.username}</h6></div>
                        <div class="doctor_list_hospital">
                            <p>${item.hospital}</p>
                            <p>${item.title}</p>
                        </div>
                    </a>
                </li>
            </c:forEach>
        </c:if>


    </ul>
</div>

<script src="<%= WarmmedConfig.static_server_url %>/warm/js/min/doctor.build.js"></script>
</body>
</html>